package com.orange.service;

import com.github.pagehelper.PageInfo;
import com.orange.domain.User;
import com.orange.dto.UserDto;

import java.util.List;

public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(String username, String password);

    PageInfo<User> queryUserByPage(UserDto userDto);

    List<User> queryAvailableUser();

    List<String>  queryEmail(List<Integer> id);
}
